//
//  RouteRequest.h
//  Cycling
//
//  Created by cjg.mini on 2023/4/8.
//

#import "BaseRequest.h"
#import "RouteListModel.h"
#import "CyclingRouteDetailModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RouteRequest : BaseRequest

// 获取路线列表
+ (void)getRouteListWithPage:(NSInteger)page pageSize:(NSInteger)pageSize key:(NSString *)key type:(NSString *)type lat:(NSString *)lat lng:(NSString *)lng result:(void(^)(RouteListModel *model))resultBlock;// 路线详情
+ (void)getRouteDetailWithId:(NSString *)routeId lat:(NSString *)lat lng:(NSString *)lng result:(void(^)(RouteDetailModel *model))resultBlock;
// 添加路线
+ (void)addRouteWithRouteId:(NSString *)routeId name:(NSString *)name result:(void(^)(NSDictionary *ret))resultBlock;
// 取消路线
+ (void)cancleRouteWithRouteId:(NSString *)routeId result:(void(^)(NSDictionary *ret))resultBlock;
// 评论路线
+ (void)commentsRouteWithRouteId:(NSString *)routeId text:(NSString *)text recid:(NSString *)recid result:(void(^)(BOOL success))resultBlock;
// 点赞路线
+ (void)praiseRouteWithRouteId:(NSString *)routeId result:(void(^)(NSDictionary *ret))resultBlock;
// 取消点赞
+ (void)cancelPraiseRouteWithRouteId:(NSString *)routeId result:(void(^)(NSDictionary *ret))resultBlock;
// 收藏路线
+ (void)collectionRouteWithRouteId:(NSString *)routeId result:(void(^)(NSDictionary *ret))resultBlock;
// 取消收藏路线
+ (void)cancleCollectionRouteWithRouteId:(NSString *)routeId result:(void(^)(NSDictionary *ret))resultBlock;
// 骑行线路详情
+ (void)getCyclingRouteDetailWithId:(NSInteger)cid result:(void(^)(CyclingRouteDetailModel *model))resultBlock;
//添加私人路线
+ (void)postAddPersonalRouteWithParams:(NSDictionary *)params result:(void(^)(BOOL success, NSDictionary *data, NSString *reason))complete;
//编辑私人路线
+ (void)postEidtPersonalRouteWithParams:(NSDictionary *)params result:(void(^)(BOOL success, NSDictionary *data, NSString *reason))complete;

/// 评论列表
/// - Parameters:
///   - page: page description
///   - pid: pid description
///   - complete: complete description
+ (void)getCommentListWith:(NSInteger)page pid:(NSString *)pid isSuper:(BOOL)isSuper result:(void(^)(BOOL success, NSDictionary *data, NSString *reason))complete;
@end

NS_ASSUME_NONNULL_END
